package com.atguigu.gmall.order.client;

import com.atguigu.gmall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(name = "service-order")
public interface OrderFeignClient {

    //查询商品清单
    //生成交易号
    @GetMapping("/api/order/trade")
    public Map<String,Object> trade();

    //根据Id查询订单
    @GetMapping("/api/order/getOrderInfo/{orderId}")
    public Result getOrderInfo(@PathVariable Long orderId);
}
